﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MobileCloneSite
{
    public class Producer
    {
        public string Name { get; set; }
        public List<string> Models { get; set; }

        public Producer()
        {
            this.Models = new List<string>();
        }

        public static List<Producer> GetSampleList()
        {
            List<Producer> result = new List<Producer>();

            result.Add(new Producer()
            {
                Name = "Audi",
                Models = new List<string>{"A3", "A4", "R8"}
            });

            result.Add(new Producer()
            {
                Name = "Nissan",
                Models = new List<string>() { "Skyline", "240SX" }
            });

            result.Add(new Producer()
            {
                Name = "Wolkswagen",
                Models = new List<string>() { "Golf", "Passat", "Tuareg", "Polo"}
            });

            return result;
        }
    }
}